#include "stdio.h"
#include "stdlib.h"
#include "lib_task1.h"

int main()
{
	int n,a,b;
	printf("Please input a number for new:\n");
	scanf("%d",&n);
	if(n < 0)
	{
		printf("Error:the number %d < 0\n",n);
		exit(1);
	}
	new(n);
	printf("Please input a index and number for set:\n");
	scanf("%d %d",&a,&b);
	if(a >= n)
	{
		printf("Error:the number %d < %d\n",a,n);
		exit(1);
	}
	set(a,b);
	printf("The %d index number is %d\n",a,get(a));
	return 0;
}
